package org.osforce.platform.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 新闻试题类
 * 
 * @author gavin
 * 
 */
@Entity
@Table(name="news")
public class News extends Archive{
	
	private static final long serialVersionUID=-9200782356023168484L;

	private String source;
	private String summary;
	private String content;

	public News(){
	}

	@Column(name="summary",length=150,nullable=false)
	public String getSummary(){
		return summary;
	}

	public void setSummary(String summary){
		this.summary=summary;
	}

	@Column(name="source",length=150)
	public String getSource(){
		return source;
	}

	public void setSource(String source){
		this.source=source;
	}
	
	@Column(name="content",nullable=false,columnDefinition="TEXT")
	public String getContent(){
		return content;
	}

	public void setContent(String content){
		this.content=content;
	}

}
